﻿<!DOCTYPE html>
<html>
<head>
    <% include meta.html%>
    <% include css.html%>
    <title>京鹏寻泉</title>
</head>
<body>
    <% include header.html%>

   <section class="row">
        <img class="wauto" src="/static/web/jingpeng/img/news.jpg" alt="">
   </section>

   <section class="bg-f4f4f4 overflow-h">
   <section class="page-c news-list row mt-47 ">

        <%if(data.articlelist.length>0){%>
            <ul>
            <%for(var i=0,list;i<data.articlelist.length;i++){%>
                    <%list = data.articlelist[i];%>
                <li class="bg-fff">
                    <a href="/article/<%=list.id%>">
                        <figure class="list-img">
                            <img style="height:100%;width:100%;" src="<%=list.thumbnail || '/static/web/img/default-img.jpg'%>"  alt="">
                        </figure>
                    </a>
                    <div class="pd-10">
                    <p class="f-18"><a class="c-277bc1" href="/article/<%=list.id%>"><%=list.title%></a></p>
                    <p class="f-12 c-999"><%=list.date%></p> 
                    <div class="f-13 mt-10 lh-24 c-666 ellips-1"><%=list.info.substring(0,60)%>...</div>
                    </div>
                </li>
            <%}%>
        </ul>
     <%}else{%>
        <p>没有任何数据！</p>
     <%}%>
   </section>
   <div class="mt-10 bg-f3f3f3">
        
        <div class="page text-c">
            <ul class="pagination" id="page2"></ul>
        </div>
        
    </div>
</section>
    
<footer class="bg-edf2f5 overflow-h">
    <div class="page-c row mt-35 mb-35">
          <div class="col-12">
              <p class="f-15 c-7a7a7a"><i class="ico ico-tel pos-r t-2 mr-4"></i>电话：010-57225345 </p>
              <p class="f-15 c-adadad"><i class="ico ico-email pos-r t-3 mr-4"></i>632349994@qq.com </p>
          </div>
          <div class="f-14 col-16 c-adadad">
            <p>首信鑫鹏国际健康管理有限公司  地址：北京市通州区绿地中央广场一期8层811  </p>
            <p>2013 - 2018首信鑫鹏国际健康管理有限公司 京ICP备18025715号-1</p>
          </div>
    </div>
 </footer>

   <% include js.html%>
   <script>
        var vm = new Vue({
            el:'.news-list',
            data:{
                level:{}
            },
            methods:{
                page:function(){
                    var pageNo = $m.getParams('page');
                    if(pageNo<=0){
                        pageNo = 1;
                    }

                    if(pageNo>parseInt('<%=pageTotal%>')){
                        pageNo = parseInt('<%=pageTotal%>');
                    }

                    Page({
                        num:parseInt('<%=pageTotal%>'),	//页码数
                        startnum:pageNo,				//指定页码
                        elem:$('#page2'),		//指定的元素
                        callback:function(n){	//回调函数
                            console.log(n);
                            location.href=location.pathname+"?page="+n
                        }
                    });
                }
            },
            created:function(){
                this.page();
                
            },
            mounted:function(){
                
            },
            updated:function(){
                
            }
        });
        
    </script>
</body>
</html>